
package com.be.beadmin.device.repository;

import com.be.beadmin.device.entity.InspectFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
* @author zty
* @date 2023-10-12
**/
public interface InspectFileRepository extends JpaRepository<InspectFile, String>, JpaSpecificationExecutor<InspectFile> {

    InspectFile findInspectFileByIdAndDelete(String id, Integer delete);

    InspectFile findInspectFileById(String id);

    int countInspectFilesByFileNameAndItemNameAndDelete(String fileName, String itemName, Integer delete);

    int countEhsFilesByFileNameAndVersionAndDelete(String fileName, String version, Integer delete);
}